export default {
  enableRowEdit: true,
  xdataControlName: 'grid',
  loadDefault: true,
  deviewCodeName: 'grid_design',
  deviewId: '851a55a70cf29819e6893ecf317613c9',
  accUserMode: 2,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.PSDEFIELD',
  },
  caption: '表格设计',
  codeName: 'psde_field_grid_design',
  appDataEntityId: 'web.psdefield',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'GridView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        newDataAppView: {
          openMode: 'POPUPMODAL',
          refAppViewId: 'web.psde_field_quick_cfg_view',
        },
        appUILogicRefViews: [
          {
            openMode: 'POPUPMODAL',
            refAppViewId: 'web.psde_field_quick_cfg_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        openDataAppView: {
          openMode: 'POPUPMODAL',
          refAppViewId: 'web.psde_field_quick_cfg_view',
        },
        editMode: true,
        appUILogicRefViews: [
          {
            openMode: 'POPUPMODAL',
            refAppViewId: 'web.psde_field_quick_cfg_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewNavParams: [
    {
      rawValue: true,
      key: 'n_usertag4_noteq',
      value: 'INTENAL',
      id: 'n_usertag4_noteq',
    },
    {
      key: 'n_psdeid_eq',
      value: 'FIELD__CATEGORY_TYPE__${category_id}@mock.master',
      id: 'n_psdeid_eq',
    },
    {
      rawValue: true,
      key: 'sort',
      value: 'ordervalue,asc',
      id: 'sort',
    },
    {
      rawValue: true,
      key: 'n_dynamodelflag_eq',
      value: '1',
      id: 'n_dynamodelflag_eq',
    },
  ],
  appViewRefs: [
    {
      realOpenMode: 'POPUPMODAL',
      realTitle: '实体属性',
      refAppViewId: 'web.psde_field_quick_cfg_view',
      name: 'NEWDATA',
      id: 'newdata',
    },
    {
      realOpenMode: 'POPUPMODAL',
      realTitle: '实体属性',
      refAppViewId: 'web.psde_field_quick_cfg_view',
      name: 'EDITDATA',
      id: 'editdata',
    },
  ],
  controls: [
    {
      detoolbarItems: [
        {
          actionLevel: 100,
          noPrivDisplayMode: 2,
          uiactionId: 'gridview_newaction',
          valid: true,
          capLanguageRes: {
            lanResTag: 'TBB.TEXT.*.NEW',
          },
          caption: '新建属性',
          itemType: 'DEUIACTION',
          sysImage: {
            cssClass: 'fa fa-plus',
            glyph: 'xf067@FontAwesome',
          },
          tooltip: '新建属性',
          tooltipLanguageRes: {
            lanResTag: 'TBB.TOOLTIP.*.NEW',
          },
          showCaption: true,
          showIcon: true,
          id: 'deuiaction1',
        },
      ],
      xdataControlName: 'grid',
      codeName: 'grid_design_toolbar',
      controlType: 'TOOLBAR',
      logicName: '表格设计_工具栏',
      appDataEntityId: 'web.psdefield',
      controlParam: {
        id: 'toolbar',
      },
      modelId: '960ae2960ea85941eb18b573ae790727',
      modelType: 'PSDETOOLBAR',
      name: 'toolbar',
      id: 'grid_design_toolbar',
    },
    {
      aggMode: 'NONE',
      columnEnableFilter: 2,
      columnEnableLink: 2,
      groupMode: 'NONE',
      groupStyle: 'DEFAULT',
      orderValueAppDEFieldId: 'ordervalue',
      degridColumns: [
        {
          clconvertMode: 'NONE',
          dataItemName: 'logicname',
          excelCaption: '属性名称',
          appDEFieldId: 'logicname',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '属性名称',
          codeName: 'logicname',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 200,
          widthUnit: 'STAR',
          enableSort: true,
          id: 'logicname',
        },
        {
          clconvertMode: 'FRONT',
          dataItemName: 'psdatatypeid',
          excelCaption: '属性类型',
          appCodeListId: 'web.field_data_type',
          appDEFieldId: 'psdatatypeid',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '属性类型',
          codeName: 'psdatatypeid',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 200,
          widthUnit: 'PX',
          enableSort: true,
          id: 'psdatatypeid',
        },
        {
          clconvertMode: 'FRONT',
          dataItemName: 'allowempty',
          excelCaption: '允许空值',
          appCodeListId: 'web.yesno',
          appDEFieldId: 'allowempty',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '允许空值',
          codeName: 'allowempty',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 150,
          widthUnit: 'PX',
          enableSort: true,
          id: 'allowempty',
        },
        {
          clconvertMode: 'NONE',
          dataItemName: 'ordervalue',
          excelCaption: '排序',
          appDEFieldId: 'ordervalue',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '排序',
          codeName: 'ordervalue',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 150,
          widthUnit: 'PX',
          enableSort: true,
          id: 'ordervalue',
        },
        {
          clconvertMode: 'NONE',
          dataItemName: 'memo',
          excelCaption: '备注',
          appDEFieldId: 'memo',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '备注',
          codeName: 'memo',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 150,
          widthUnit: 'PX',
          id: 'memo',
        },
        {
          deuiactionGroup: {
            uiactionGroupDetails: [
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                detailType: 'DEUIACTION',
                uiactionId: 'edit_field@psdefield',
                tooltip: '编辑',
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-edit',
                  glyph: 'xf044@FontAwesome',
                },
                id: 'u89c4513',
              },
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                detailType: 'DEUIACTION',
                uiactionId: 'remove_field@psdefield',
                tooltip: '删除',
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-trash-o',
                  glyph: 'xf014@FontAwesome',
                },
                id: 'u6f86502',
              },
            ],
            appDataEntityId: 'web.psdefield',
            uniqueTag: 'PSDEField__Usr0607959687',
            name: '属性编辑或删除',
            id: 'usr0607959687',
          },
          aggMode: 'NONE',
          align: 'CENTER',
          caption: '操作',
          codeName: 'uagridcolumn1',
          columnType: 'UAGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 200,
          widthUnit: 'PX',
          id: 'uagridcolumn1',
        },
      ],
      degridDataItems: [
        {
          appDEFieldId: 'logicname',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'logicname',
        },
        {
          appDEFieldId: 'psdatatypeid',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'psdatatypeid',
        },
        {
          appDEFieldId: 'allowempty',
          valueType: 'SIMPLE',
          dataType: 9,
          id: 'allowempty',
        },
        {
          appDEFieldId: 'ordervalue',
          valueType: 'SIMPLE',
          dataType: 6,
          id: 'ordervalue',
        },
        {
          appDEFieldId: 'memo',
          valueType: 'SIMPLE',
          dataType: 21,
          id: 'memo',
        },
        {
          appDEFieldId: 'psdeid',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'psdeid',
        },
        {
          appDEFieldId: 'deftype',
          valueType: 'SIMPLE',
          dataType: 9,
          id: 'deftype',
        },
        {
          appDEFieldId: 'psdefieldid',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfkey',
        },
        {
          appDEFieldId: 'psdefieldid',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfdataaccaction',
        },
        {
          appDEFieldId: 'psdefieldname',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfmajortext',
        },
      ],
      degridEditItems: [
        {
          caption: '实体属性标识',
          codeName: 'srfkey',
          enableCond: 3,
          appDEFieldId: 'psdefieldid',
          editor: {
            editorType: 'HIDDEN',
            valueType: 'SIMPLE',
            editable: true,
            id: 'srfkey',
          },
          allowEmpty: true,
          id: 'srfkey',
        },
      ],
      pagingMode: 1,
      pagingSize: 20,
      sortMode: 'REMOTE',
      enableCustomized: true,
      enablePagingBar: true,
      enableRowEdit: true,
      enableRowNew: true,
      navViewPos: 'NONE',
      createControlAction: {
        appDEMethodId: 'create',
        appDataEntityId: 'web.psdefield',
        id: 'create',
      },
      fetchControlAction: {
        appDEMethodId: 'fetchdefault',
        appDataEntityId: 'web.psdefield',
        id: 'fetch',
      },
      getDraftControlAction: {
        appDEMethodId: 'getdraft',
        appDataEntityId: 'web.psdefield',
        id: 'loaddraft',
      },
      getControlAction: {
        appDEMethodId: 'get',
        appDataEntityId: 'web.psdefield',
        id: 'load',
      },
      removeControlAction: {
        appDEMethodId: 'remove',
        appDataEntityId: 'web.psdefield',
        id: 'remove',
      },
      updateControlAction: {
        appDEMethodId: 'update',
        appDataEntityId: 'web.psdefield',
        id: 'update',
      },
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'grid_design_grid',
      controlType: 'GRID',
      logicName: '表格设计_表格',
      appDataEntityId: 'web.psdefield',
      controlParam: {
        id: 'grid',
      },
      modelId: 'cc2bec55f46332cf836e75bc44273fba',
      modelType: 'PSDEGRID',
      name: 'grid',
      id: 'web.psdefield.grid_design_grid',
    },
    {
      searchButtonStyle: 'DEFAULT',
      deformPages: [
        {
          layout: {
            columnCount: 24,
            layout: 'TABLE_24COL',
          },
          caption: '常规条件',
          codeName: 'formpage1',
          detailStyle: 'DEFAULT',
          detailType: 'FORMPAGE',
          id: 'formpage1',
        },
      ],
      layout: {
        columnCount: 24,
        layout: 'TABLE_24COL',
      },
      tabHeaderPos: 'TOP',
      noTabHeader: true,
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'grid_design_search_form',
      controlType: 'SEARCHFORM',
      logicName: '表格设计_搜索表单',
      appDataEntityId: 'web.psdefield',
      controlParam: {
        id: 'searchform',
      },
      modelId: 'cd4c9589d3a5edcd82a664fc81f030ac',
      modelType: 'PSDEFORM_SEARCHFORM',
      name: 'searchform',
      id: 'web.psdefield.grid_design_search_form',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.psdefield',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.PSDEFIELD',
      },
      caption: '表格设计',
      codeName: 'grid_design_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.psdefield',
      controlParam: {},
      name: 'captionbar',
      id: 'grid_design_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEGRIDVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.psdefield',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '表格设计',
  viewStyle: 'DEFAULT',
  viewType: 'DEGRIDVIEW',
  enableDP: true,
  showCaptionBar: true,
  modelId: '5dde523421b0a0f092476c6885bc6ef2',
  modelType: 'PSAPPDEVIEW',
  name: 'PSDEFieldgrid_design',
  id: 'web.psde_field_grid_design',
};
